import {Component, OnInit} from '@angular/core';
import {FormBuilder} from '@angular/forms';

import {BaseFilter} from '../../../../base/components/BaseFilter';
import {ProgrammeService} from '../../services/programme.service';

@Component({
  selector: 'app-programme-filter',
  templateUrl: './programme-filter.component.html',
  styles: []
})
export class ProgrammeFilterComponent extends BaseFilter implements OnInit {

  constructor(private fb: FormBuilder, private programmeService: ProgrammeService) {
    super();
  }

  /**
   * 初始化默认查询条件
   */
  getDefaultFilter() {
    return {};
  }


  ngOnInit() {
    this.filterForm = this.fb.group({
      keys: [null],
      code: [null],
      name: [null],
      des: [null],
      type: [null],
    });
    // this.flushData();
  }
}
